<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class File extends BaseModel
{
    use HasFactory;
    protected $table = 'file';
    // 允许批量操作的字段
    protected $fillable = ['user_id','file_name','file_md5','file_url','file_size','file_mime',
        'upload_ip','created_at','updated_at'];

    public function scopeSearch($query,$params)
    {

        return $query;
    }
}
